package com.viewpager.test;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
/**
 * 
* @ClassName: HttpParams 
* @Description: 封装Http请求参数 
* @author 黄伟
* @date 2015-3-27 上午10:27:58 
*
 */
public class HttpParams {
	public List<NameValuePair> put(String key, String value) {
    	List<NameValuePair> params=new ArrayList<NameValuePair>();
        if (key != null && value != null) {
        	params.add(new BasicNameValuePair(key, value));
        } else {
            throw new RuntimeException("key or value is NULL");
            
        }
    	return params;
    }

}
